package cn.ronghui.project.domain.application.model.entity;

import cn.ronghui.project.types.enums.RoomTypeEnumVO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ApplicationCreateEntity {

    /** 申请ID */
    private String applicationId;
    /** 申请人学生学号 */
    private String studentId;
    /** 申请的房间类型 ('单人间', '双人间', '四人间')*/
    private RoomTypeEnumVO roomType;
    /** 租用开始日期 */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate startDate;
    /** 租用结束日期 */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endDate;
}
